﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.QixingManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2023-04-02 22:29
    /// 描 述：产品入库记录实体类
    /// </summary>
    [Table("goods_storage_record")]
    public class GoodsStorageRecordEntity : BaseEntity
    {
        /// <summary>
        /// goods_warehouse的id 产品库存id
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? productId { get; set; }
        /// <summary>
        /// 商品id
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? goodsId { get; set; }
        /// <summary>
        /// 入库数
        /// </summary>
        /// <returns></returns>
        public int? storageCount { get; set; }
        /// <summary>
        /// 入库时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? createtime { get; set; }

        [JsonConverter(typeof(StringJsonConverter))]
        public long? tenant_id { get; set; }
    }
}
